package com.cloudbroker.bcs.platform.ltb.middle.dao;

import com.cloudbroker.bcs.common.dao.base.DAOBase;
import com.cloudbroker.bcs.platform.ltb.bizapi.constants.status.PublicStatus;
import com.cloudbroker.bcs.platform.ltb.bizapi.service.admin.vo.CommentQueryForm;
import com.cloudbroker.bcs.platform.ltb.bizapi.service.comment.vo.CommentSearchForm;
import com.cloudbroker.bcs.platform.ltb.bizapi.service.comment.vo.CommentTargetForm;
import com.cloudbroker.bcs.platform.ltb.middle.entity.CommentMsg;
import com.cloudbroker.bcs.platform.ltb.middle.entity.CommentUser;

import java.util.List;

/**
 * Created by zhaosh19213 on 2016/7/15.
 */
public interface CommentDAO extends DAOBase<CommentMsg, String> {

    public int getMaxTopNum();

    public int topComment(CommentMsg commentMsg);

    public int updateComment(CommentMsg commentMsg);

    public List<CommentUser> queryComments(CommentQueryForm queryForm);

    public List<CommentUser> queryCommentsByTarget(CommentTargetForm  targetForm);

    public List<CommentUser> queryCommentsByIds(List<Long> commentIds);

    public List<CommentUser> searchComments(CommentSearchForm commentSearchForm);

    public void cancelTopByTargetId(CommentMsg commentMsg);

    public int countCommentsByTarget(CommentTargetForm  targetForm);
}
